<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>全局配置 | epg-focus-vue</title>
    <meta name="description" content="主要应用于电视端焦点交互">
    <meta name="generator" content="VuePress 1.4.0">
    <meta name="theme-color" content="#3eaf7c">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
    
    <link rel="preload" href="/epg-focus/assets/css/0.styles.33941019.css" as="style"><link rel="preload" href="/epg-focus/assets/js/app.b31e66c6.js" as="script"><link rel="preload" href="/epg-focus/assets/js/2.20e6004e.js" as="script"><link rel="preload" href="/epg-focus/assets/js/15.8399aeea.js" as="script"><link rel="prefetch" href="/epg-focus/assets/js/10.2514fb4c.js"><link rel="prefetch" href="/epg-focus/assets/js/11.793ea926.js"><link rel="prefetch" href="/epg-focus/assets/js/12.01e4e231.js"><link rel="prefetch" href="/epg-focus/assets/js/13.1423ccd0.js"><link rel="prefetch" href="/epg-focus/assets/js/14.115308bc.js"><link rel="prefetch" href="/epg-focus/assets/js/16.bd815638.js"><link rel="prefetch" href="/epg-focus/assets/js/17.dd77a29f.js"><link rel="prefetch" href="/epg-focus/assets/js/18.ae87f8b0.js"><link rel="prefetch" href="/epg-focus/assets/js/19.c6e425a9.js"><link rel="prefetch" href="/epg-focus/assets/js/20.5dd0cf52.js"><link rel="prefetch" href="/epg-focus/assets/js/21.b87d0d78.js"><link rel="prefetch" href="/epg-focus/assets/js/22.5709ae7e.js"><link rel="prefetch" href="/epg-focus/assets/js/23.1c381a02.js"><link rel="prefetch" href="/epg-focus/assets/js/24.a133fc1f.js"><link rel="prefetch" href="/epg-focus/assets/js/25.d262c8d0.js"><link rel="prefetch" href="/epg-focus/assets/js/26.825a6650.js"><link rel="prefetch" href="/epg-focus/assets/js/27.57eb15d3.js"><link rel="prefetch" href="/epg-focus/assets/js/28.5b056900.js"><link rel="prefetch" href="/epg-focus/assets/js/3.7cc2bdd4.js"><link rel="prefetch" href="/epg-focus/assets/js/4.82f74d64.js"><link rel="prefetch" href="/epg-focus/assets/js/5.fe38ea94.js"><link rel="prefetch" href="/epg-focus/assets/js/6.0d7ca19c.js"><link rel="prefetch" href="/epg-focus/assets/js/7.4478646a.js"><link rel="prefetch" href="/epg-focus/assets/js/8.0d360ba2.js"><link rel="prefetch" href="/epg-focus/assets/js/9.40007ddf.js">
    <link rel="stylesheet" href="/epg-focus/assets/css/0.styles.33941019.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/epg-focus/" class="home-link router-link-active"><!----> <span class="site-name">epg-focus-vue</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/epg-focus/guide/" class="nav-link">
  引导
</a></div><div class="nav-item"><a href="/epg-focus/v1/" class="nav-link">
  v1
</a></div><div class="nav-item"><a href="/epg-focus/v2/" class="nav-link router-link-exact-active router-link-active">
  v2
</a></div><div class="nav-item"><a href="/epg-focus/v3/" class="nav-link">
  v3
</a></div><div class="nav-item"><a href="https://gitee.com/wyzhgx/focus-vue" target="_blank" rel="noopener noreferrer" class="nav-link external">
  gitee
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><a href="https://www.npmjs.com/package/epg-focus-vue" target="_blank" rel="noopener noreferrer" class="nav-link external">
  npm
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/epg-focus/guide/" class="nav-link">
  引导
</a></div><div class="nav-item"><a href="/epg-focus/v1/" class="nav-link">
  v1
</a></div><div class="nav-item"><a href="/epg-focus/v2/" class="nav-link router-link-exact-active router-link-active">
  v2
</a></div><div class="nav-item"><a href="/epg-focus/v3/" class="nav-link">
  v3
</a></div><div class="nav-item"><a href="https://gitee.com/wyzhgx/focus-vue" target="_blank" rel="noopener noreferrer" class="nav-link external">
  gitee
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><a href="https://www.npmjs.com/package/epg-focus-vue" target="_blank" rel="noopener noreferrer" class="nav-link external">
  npm
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>v2.x开发文档</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/epg-focus/v2/" class="active sidebar-link">全局配置</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/epg-focus/v2/#focusname" class="sidebar-link">focusName</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#selectname" class="sidebar-link">selectName</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#limittime" class="sidebar-link">limitTime</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#usekeyup" class="sidebar-link">useKeyUp</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#failoverdist" class="sidebar-link">failoverDist</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#includeattr" class="sidebar-link">includeAttr</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#back" class="sidebar-link">back</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#keymaps" class="sidebar-link">keyMaps</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#inactivetime" class="sidebar-link">inactiveTime</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#inactivecallback" class="sidebar-link">inactiveCallback</a></li><li class="sidebar-sub-header"><a href="/epg-focus/v2/#interruptinactive" class="sidebar-link">InterruptInactive</a></li></ul></li><li><a href="/epg-focus/v2/api.html" class="sidebar-link">全局 API</a></li><li><a href="/epg-focus/v2/event.html" class="sidebar-link">按键事件</a></li><li><a href="/epg-focus/v2/long-event.html" class="sidebar-link">按键长按事件</a></li><li><a href="/epg-focus/v2/items.html" class="sidebar-link">items</a></li><li><a href="/epg-focus/v2/group.html" class="sidebar-link">group</a></li><li><a href="/epg-focus/v2/keep-alive.html" class="sidebar-link">keepAlive 应用方案</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="全局配置"><a href="#全局配置" class="header-anchor">#</a> 全局配置</h1> <h2 id="focusname"><a href="#focusname" class="header-anchor">#</a> focusName</h2> <ul><li><strong>Type</strong>: <code>String</code></li> <li><strong>Default</strong>：<code>focushover</code></li> <li><strong>简介</strong>：节点获焦时添加的类名</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span> focusName<span class="token operator">:</span> <span class="token string">&quot;focus&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="selectname"><a href="#selectname" class="header-anchor">#</a> selectName</h2> <ul><li><strong>Type</strong>: <code>String</code></li> <li><strong>Default</strong>：<code>curselect</code></li> <li><strong>简介</strong>：含有<code>sign</code>标记的节点被选中时添加的类名</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span> focusName<span class="token operator">:</span> <span class="token string">&quot;select&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="limittime"><a href="#limittime" class="header-anchor">#</a> limitTime</h2> <ul><li><strong>Type</strong>：<code>Number</code></li> <li><strong>default</strong>：<code>200</code></li> <li><strong>简介</strong>：按键响应间隔（单位：ms）</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span> limitTime<span class="token operator">:</span> <span class="token number">500</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="usekeyup"><a href="#usekeyup" class="header-anchor">#</a> useKeyUp</h2> <ul><li><strong>Type</strong>：<code>Boolean</code></li> <li><strong>default</strong>：<code>false</code></li> <li><strong>简介</strong>：处理是否支持长按操作，默认未<code>false</code>不支持，配置<code>true</code>时支持长按操作，同时<code>limitTime</code>设置失效</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span> Boolean<span class="token operator">:</span> <span class="token boolean">true</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="failoverdist"><a href="#failoverdist" class="header-anchor">#</a> failoverDist</h2> <ul><li><strong>Type</strong>：<code>Number</code></li> <li><strong>default</strong>：<code>0</code></li> <li><strong>简介</strong>：焦点计算过程中上下排版间距计算容错值</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span> failoverDist<span class="token operator">:</span> <span class="token number">100</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="includeattr"><a href="#includeattr" class="header-anchor">#</a> includeAttr</h2> <ul><li><strong>Type</strong>：<code>String</code></li> <li><strong>default</strong>：``</li> <li><strong>简介</strong>：VUEx 执行<code>commit</code>的方法名称字符串，该方法对应处理的是还原<code>include</code>列表；在原本正常跳转需要缓存，但是返回时不缓存的页面，需要在返回操作中将自己从 include 列表中排除（详见<a href="/epg-focus/v2/keep-alive.html">keepAlive 应用方案</a>）</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span> includeAttr<span class="token operator">:</span> <span class="token string">&quot;setIncludeStr&quot;</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="back"><a href="#back" class="header-anchor">#</a> back</h2> <ul><li><strong>Type</strong>：<code>Function</code></li> <li><strong>default</strong>：<code>() =&gt; { history.back(); };</code></li> <li><strong>简介</strong>：页面统一返回默认执行方法，有相应赋值的情况下优先级：$Focus.keyBack &gt; back &gt; history.back</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span>
  <span class="token function-variable function">back</span><span class="token operator">:</span> <span class="token keyword">function</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    history<span class="token punctuation">.</span><span class="token function">back</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="keymaps"><a href="#keymaps" class="header-anchor">#</a> keyMaps</h2> <ul><li><strong>Type</strong>：<code>Object</code></li> <li><strong>简介</strong>：['left','up','right','down','enter','back','number','foward','rewind','play','pause','stop','delete']键值识别数组中包含的内容，可以根据<a href="/epg-focus/v2/event.html">按键事件</a>中的键值对应关系调整或增加新的键值</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span>
  keyMaps<span class="token operator">:</span> <span class="token punctuation">{</span>
    up<span class="token operator">:</span> <span class="token number">56</span><span class="token punctuation">,</span>
    <span class="token keyword">delete</span><span class="token operator">:</span> <span class="token punctuation">[</span><span class="token number">8</span><span class="token punctuation">]</span><span class="token punctuation">,</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="inactivetime"><a href="#inactivetime" class="header-anchor">#</a> inactiveTime</h2> <ul><li><strong>Type</strong>: <code>Number</code></li> <li><strong>Default</strong>：<code>5 * 60 * 1000</code></li> <li><strong>简介</strong>：无操作持续时间，最低5分钟；单位<code>h\m\s</code>对应时\分\秒；未配置该字段或配置时长低于5分钟，则<code>inactiveCallback</code>和<code>InterruptInactive</code>不会触发</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span> inactiveTime<span class="token operator">:</span> <span class="token number">60</span> <span class="token operator">*</span> <span class="token number">1000</span> <span class="token operator">*</span> <span class="token number">30</span> <span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="inactivecallback"><a href="#inactivecallback" class="header-anchor">#</a> inactiveCallback</h2> <ul><li><strong>Type</strong>：<code>Function</code></li> <li><strong>default</strong>：<code>() =&gt; {};</code></li> <li><strong>简介</strong>：无操作持续时间满足<code>inactiveTime</code>配置时长时进入睡眠状态，执行的操作</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span>
  <span class="token function">inactiveCallback</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token comment">// do something</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><h2 id="interruptinactive"><a href="#interruptinactive" class="header-anchor">#</a> InterruptInactive</h2> <ul><li><strong>Type</strong>：<code>Function</code></li> <li><strong>default</strong>：<code>() =&gt; {};</code></li> <li><strong>简介</strong>：无操作持续时间满足<code>inactiveTime</code>时进入睡眠状态，任意按钮中断该状态执行的操作</li> <li><strong>应用</strong>：</li></ul> <div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">import</span> Vue <span class="token keyword">from</span> <span class="token string">&quot;vue&quot;</span><span class="token punctuation">;</span>
<span class="token keyword">import</span> $focus <span class="token keyword">from</span> <span class="token string">&quot;epg-focus-vue&quot;</span><span class="token punctuation">;</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>$focus<span class="token punctuation">,</span> <span class="token punctuation">{</span>
  <span class="token function">InterruptInactive</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token comment">// do something</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
<span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/epg-focus/v2/api.html">
        全局 API
      </a>
      →
    </span></p></div> </main></div><div class="global-ui"><!----></div></div>
    <script src="/epg-focus/assets/js/app.b31e66c6.js" defer></script><script src="/epg-focus/assets/js/2.20e6004e.js" defer></script><script src="/epg-focus/assets/js/15.8399aeea.js" defer></script>
  </body>
</html>
